<?php 
	jimport('joomla.application.component.view');
	//thuc hien goi  model phu hop
	class kinh_doanhViewsp_trong_kho_lon extends JView
	{
		function display($tpl=null)
		{
		
			$model = $this->getModel();
            $data = $model->ds_sp_kho_lon();
            echo "<pre>";print_r($data);echo "</pre>";
            
            ?>
            <form method="post" action="index.php?option=com_kinh_doanh&task=goi_don_hang_len_kho">
                <table border="1">
                    <tr>
                        <td>
                            STT
                        </td>
                        <td>
                            Tên sản phẩm
                        </td>
                         <td>
                            Tổng số lượng
                        </td>
                        <td>
                            Số lượng cần lấy
                        </td>
                    </tr>
                    <?php $i=1;
                        foreach($data as $row)
                        {
                            ?><tr>
                            <td>
                            <?php echo $i;?>
                        </td>
                        <td>
                            <?php echo $row->name;?>
                        </td>
                         <td>
                            <?php echo $row->sum;?>
                        </td>
                        <td>
                            <input type="text" name="id<?php echo $row->id_pro;?>" />
                        </td></tr>
                            <?php 
                        $i++;}
                    ?>
                </table>
                <input type="submit" value="Gởi" />
                </form>
            <?php
            //$model->ds_sp_kho_lon();
		}	
	}
?>